

import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../dd_core/dd_config.dart';
import '../controllers/dd_home_controller.dart';
import '../views/dd_new_loading.dart';
import '../views/dd_simple_player.dart';
import 'dd_home_second_page.dart';

class DDMatchingPage extends StatefulWidget {
  const DDMatchingPage({Key? key}) : super(key: key);

  @override
  State<DDMatchingPage> createState() => _DDMatchingPageState();
}

class _DDMatchingPageState extends State<DDMatchingPage> {
  DDHomeController _contorller = Get.find<DDHomeController>();

  @override
  Widget build(BuildContext context) {
    return GetBuilder<DDHomeController>(
        init: _contorller,
        initState: (state) {},
        dispose: (state) {},
        builder: (controller) {
          return Scaffold(
              backgroundColor: Colors.white,
              body: SafeArea(
                top: false,
                bottom: false,
                child: Stack(
                  children: [
                    Positioned.fill(
                      child: SizedBox(
                          child:
                          SVGDDASimpleImage(assetsName:'assets/source/fast.svga')
                      ),
                    ),
                    Align(
                        alignment: Alignment(0.0, 0.6),
                        child: Padding(
                            padding: const EdgeInsets.only(bottom: 50.0),
                            child: GestureDetector(
                              onTap: () {
                                DDRoutesConfig.push(DDHomeSecondPage(),routeName:"/homeSecondPage");
                              },
                              child: Container(
                                width: 331,
                                height: 54,
                                child: NowLoadingView(),
                              ),
                            ))),
                  ],
                ),
              ));
        });
  }
}
